% TEST_ID: LANG-EXPAND-0113
% CATEGORY: language/string
% 测试 string 的拼接

function test_string_join()

x = 'hello';
y = upper(x);
assert(isequal(y, 'HELLO'));

x = {'hello', 'world'};
y = upper(x);
assert(isequal(y{1}, 'HELLO'));
assert(isequal(y{2}, 'WORLD'));

x = 'HELLO';
y = lower(x);
assert(isequal(y, 'hello'));

x = {'HELLO', 'WORLD'};
y = lower(x);
assert(isequal(y{1}, 'hello'));
assert(isequal(y{2}, 'world'));


x = 14.5;
y = upper(x);
assert(isequal(y, 14.5));

x = int64(14);
y = lower(x);
assert(isequal(y, 14));

x = ['abc'; 'def'];
y = upper(x);
assert(isequal(y, ['ABC'; 'DEF']));

z = lower(y);
assert(isequal(z, x));

x = {['abc';'def']};
y = upper(x);
assert(isequal(y{1}, ['ABC'; 'DEF']));

end
